using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MMM.Core.Domain;
using ServiceStack.ServiceHost;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using ServiceStack.DataAnnotations;

namespace MMM.Services.Type
{
    /// <summary>
    /// 行政区域管理
    /// </summary>
    [Serializable]
    [Route("/api/administrativearea", "POST,PUT")]
    [Route("/api/administrativeareaQ", "GET")]
    public class AdministrativeArea : EntityBase<AdministrativeArea>
    {  
        /// <summary>
        /// 区域编号
        /// </summary>
        [StringLength(50)]
        [Required]
        public String Code { get; set; }
        /// <summary>
        /// 省份
        /// </summary>
        [StringLength(50)]
        public String Province { get; set; }
        /// <summary>
        /// 市
        /// </summary>
        [StringLength(50)]
        public String City { get; set; }
        /// <summary>
        /// 县
        /// </summary>
        [StringLength(50)]
        public String County { get; set; }
        /// <summary>
        /// 行政级别
        /// </summary>
        [Index]
        public int Level { get; set; }
        /// <summary>
        /// 拼音
        /// </summary>
        [StringLength(50)]
        public String Spell { get; set; }
        /// <summary>
        /// WB
        /// </summary>
        [StringLength(50)]
        public String WB { get; set; }

    }
}
